/* 这个文件放多个页面使用的公共样式 */


/* 清楚浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*防止盒子被撑大*/

}

body {
    background-image: url(../img/background2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* 设置让高度和html父元素一样高 */
    height: 100%;
}

html {
    /* 设置让html的高度和浏览器窗口一样高 */
    height: 100%;
}

.nav {
    /* 导航栏高度普遍都是50px */
    height: 50px;
    background-color: rgba(50, 50, 50, 0.4);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav img {
    width: 40px;
    height: 40px;
    margin-left: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.nav .spacer {
    width: 72%;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

.background {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.container {
    width: 1000px;
    margin: 0 auto;
    height: calc(100% - 50px);
    display: flex;
    justify-content: space-between;
}

.container .container-left {
    height: 100%;
    width: 200px;
}

.container .container-right {
    height: 100%;
    width: 796px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 20px;
    overflow: auto;
}

.card {
    background-color: rgba(255, 255, 255, 0.6);
    /* 设置内边距,为了图片和文字不会顶着边框 */
    padding: 30px;
    border-radius: 20px;
}

.card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.card h3 {
    text-align: center;
    padding: 10;
}

.card a {
    text-align: center;
    text-decoration: none;
    color: gray;
    /* a标签默认是行内元素 默认尺寸和内容是一样的 */
    display: block;
    padding: 10px;
}

.card .counter {
    display: flex;
    justify-content: space-around;
    padding: 5px;
}



#editor {
    border-radius: 10px;
    /* 子元素透明度 */
    opacity: 80%;
}